﻿<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>@ViewData["Title"] - HD日志管理中心</title>
    <link rel="stylesheet" href="~/lib/layui/css/layui.css" />
    <link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
</head>
<body>
    <div class="layui-layout layui-layout-admin">
        <!-- 头部 -->
        <div class="layui-header">
            <div class="layui-logo layui-hide-xs layui-bg-black">HD日志管理中心</div>
            <ul class="layui-nav layui-layout-left">
                <li class="layui-nav-item layui-hide-xs"><a href="/">首页</a></li>
            </ul>
            <ul class="layui-nav layui-layout-right">
                <li class="layui-nav-item layui-hide layui-show-md-inline-block">
                    <a href="javascript:;">
                        <img src="//tva1.sinaimg.cn/crop.0.0.118.118.180/5db8ffb0gw1e77d3nqrv8j203b03cweg.jpg" class="layui-nav-img">
                        管理员
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a href="">基本资料</a></dd>
                        <dd><a href="">安全设置</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect>
                    <a href="javascript:;">
                        <i class="layui-icon layui-icon-more-vertical"></i>
                    </a>
                </li>
            </ul>
        </div>

        <!-- 左侧导航 -->
        <div class="layui-side layui-bg-black">
            <div class="layui-side-scroll">
                <ul class="layui-nav layui-nav-tree" lay-filter="test">
                    <li class="layui-nav-item">
                        <a class="" href="javascript:;">日志管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="/LogManager">日志查询</a></dd>
                            <dd><a href="/LogManager/Details">日志详情</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a class="" href="javascript:;">项目配置</a>
                        <dl class="layui-nav-child">
                            <dd><a href="/Project">项目列表</a></dd>
                            <dd><a href="/Project/Create">新增项目</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a class="" href="javascript:;">警告配置</a>
                        <dl class="layui-nav-child">
                            <dd><a href="/AlertConfig">警告规则管理</a></dd>
                        </dl>
                    </li>
                    <li class="layui-nav-item">
                        <a class="" href="javascript:;">系统管理</a>
                        <dl class="layui-nav-child">
                            <dd><a href="/Home/Privacy">系统设置</a></dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>

        <!-- 主体内容 -->
        <div class="layui-body">
            <div style="padding: 15px;">
                @RenderBody()
            </div>
        </div>

        <!-- 底部 -->
        <div class="layui-footer">
            © 2024 HD日志管理中心 - 基于 .NET 6 + Layui 构建
        </div>
    </div>

    <script src="~/lib/layui/layui.js"></script>
    <script src="~/js/site.js" asp-append-version="true"></script>
    @await RenderSectionAsync("Scripts", required: false)

    <script>
        layui.use(['element', 'layer'], function(){
            var element = layui.element;
            var layer = layui.layer;
            
            // 导航菜单激活
            var currentPath = window.location.pathname;
            $('.layui-nav-child dd a').each(function() {
                if ($(this).attr('href') === currentPath) {
                    $(this).addClass('layui-this');
                    $(this).parents('.layui-nav-item').addClass('layui-nav-itemed');
                }
            });
        });
    </script>
</body>
</html>
